<section class="list-home box">

    <header>Recent tricks</header>

    <?php foreach($tricks as $trick): ?>
    <article class="o-list">
        <div class="title"><strong>#<?php echo $trick->id; ?></strong> <?php echo $trick->title ?></div>
        <div class="info">written by <?php echo $trick->user->fullname() ?> on <?php echo $trick->date_add; ?></div>
    </article>
    <?php endforeach;  ?>

    <?php if(count($tricks) == 0): ?>
    <article class="o-list">
        No trick yet...
    </article>
    <?php endif; ?>

</section>

<section class="list-home box">

    <header>Recent issues</header>

    <?php foreach($problems as $problem): ?>
    <article class="o-list">
        <div class="title">Lorem Ipsum Lorem Ipsum</div>
        <div class="info">written by Yeti on 20.01</div>
    </article>
    <?php endforeach;  ?>

    <?php if(count($problems) == 0): ?>
    <article class="o-list">
        No problem yet...
    </article>
    <?php endif; ?>

</section>

<section class="list-home tiny box">

    <header>Recent members</header>

    <?php foreach($users as $user): ?>
    <article class="o-list">
        <div class="title"><?php echo $user->fullname(); ?></div>
    </article>
    <?php endforeach;  ?>

</section>




